package chat;

/**
 * Every possible action that is triggered by a client, which should be handled in a special way by the server
 * @author Jan Monterrubio
 *
 */
public interface ServerActions {
	
	/**
	 * Adds a user and links him to his thread number
	 * @param user the username we're adding
	 */
	public void addUser(String user);
	
	/**
	 * Removes a user and his thread. Also all associated indeces are removed.
	 * @param user the username we're removing
	 */
	public void removeUser(String user);
	
	/**
	 * Checks for repetition in user names
	 * @param user the user thats requesting connection
	 */
	public void validUser(String user);

	public void privateMessage(String message);
	
	public void sendTower(Object tower, String sender, String receiver);
	
	public void sendMoney(int money, String sender, String receiver);	
}
